/*
 * Account.h
 *
 *  Created on: 21.05.2009
 *      Author: h3llfire
 */

#ifndef ACCOUNT_H_
#define ACCOUNT_H_

#include "database/DBType.h"
#include "interfaces/iProtocol.h"
#include "Buddy.h"

namespace Impp{

class iProtocol;
class SelfBuddy;

enum AccountFlags{
	ACCOUNT_FLAG_MASTER = 0x000001,
	ACCOUNT_FLAG_ACTIVE = 0x000002
};

class Account{
public:
	Account(const db_id & id, const int flags, const wxString & classname, const wxString & screenname, const wxString & password, SelfBuddy* self);
	~Account();

	db_id id;
	int flags;
	wxString classname;
	wxString screenname;
	wxString password;
	SelfBuddy* self;
	iProtocol* protocol;

	bool isActive();
};



}

#endif /* ACCOUNT_H_ */
